import math
import sys
sys.path.append("D:\\PythonWorkSpaces\\1-46")
import 天气 as demo

demo.main()
print(">>>>>>>>>>>>>>>>>>")


def is_primeNumber(number):
    if number <= 1:
        return False
    if number == 2:
        return True
    if number % 2 == 0:
        return False
    for current in range(3, int(math.sqrt(number)+1), 2):
        if number % current == 0:
            return False
    return True

def get_prime(number):
    while True:
        if is_primeNumber(number):
            yield number
        number += 1

def solve():
    total = 2
    for next_prime in get_prime(3):
        if next_prime < 2000000:
            total += next_prime
        else:
            print(total)
            return

if __name__ == '__main__':
    solve()